package com.huxuesong.prcc.util.submail.demo;

import com.huxuesong.prcc.util.submail.config.AppConfig;
import com.huxuesong.prcc.util.submail.lib.ADDRESSBOOKMail;
import com.huxuesong.prcc.util.submail.utils.ConfigLoader;

public class AddressBookMailSubscribe {

	public static void main(String[] args) {

		AppConfig config = new ConfigLoader().load(ConfigLoader.ConfigType.Mail);
		ADDRESSBOOKMail addressbook = new ADDRESSBOOKMail(config);
		addressbook.setAddress("leo@apple.cn", "leo");
		addressbook.subscribe();
	}	
}
